using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
using aspnetapp.Model;

namespace aspnetapp
{
    public partial class CounterContext : DbContextExpand
    {
        public CounterContext() { }

        public CounterContext(DbContextOptions<CounterContext> options) : base(options) { }

        public DbSet<CounterModel> Counters { get; set; } = null!;

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.UseCollation("utf8_general_ci").HasCharSet("utf8");
            modelBuilder.Entity<CounterModel>().ToTable("Counters");
            OnModelCreatingPartial(modelBuilder);
        }

        partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
    }
}
